package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * ApiResponseCustomerOverAllTradeOptionData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseCustomerOverAllTradeOptionData   {
  @JsonProperty("info")
  @Valid
  private List<NameValueStrResp> info = null;

  @JsonProperty("hold")
  @Valid
  private List<OptionPositionStr> hold = null;

  public ApiResponseCustomerOverAllTradeOptionData info(List<NameValueStrResp> info) {
    this.info = info;
    return this;
  }

  public ApiResponseCustomerOverAllTradeOptionData addInfoItem(NameValueStrResp infoItem) {
    if (this.info == null) {
      this.info = new ArrayList<NameValueStrResp>();
    }
    this.info.add(infoItem);
    return this;
  }

  /**
   * Get info
   * @return info
  **/
  @ApiModelProperty(value = "")

  @Valid

  public List<NameValueStrResp> getInfo() {
    return info;
  }

  public void setInfo(List<NameValueStrResp> info) {
    this.info = info;
  }

  public ApiResponseCustomerOverAllTradeOptionData hold(List<OptionPositionStr> hold) {
    this.hold = hold;
    return this;
  }

  public ApiResponseCustomerOverAllTradeOptionData addHoldItem(OptionPositionStr holdItem) {
    if (this.hold == null) {
      this.hold = new ArrayList<OptionPositionStr>();
    }
    this.hold.add(holdItem);
    return this;
  }

  /**
   * 列表
   * @return hold
  **/
  @ApiModelProperty(value = "列表")

  @Valid

  public List<OptionPositionStr> getHold() {
    return hold;
  }

  public void setHold(List<OptionPositionStr> hold) {
    this.hold = hold;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseCustomerOverAllTradeOptionData apiResponseCustomerOverAllTradeOptionData = (ApiResponseCustomerOverAllTradeOptionData) o;
    return Objects.equals(this.info, apiResponseCustomerOverAllTradeOptionData.info) &&
        Objects.equals(this.hold, apiResponseCustomerOverAllTradeOptionData.hold);
  }

  @Override
  public int hashCode() {
    return Objects.hash(info, hold);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseCustomerOverAllTradeOptionData {\n");
    
    sb.append("    info: ").append(toIndentedString(info)).append("\n");
    sb.append("    hold: ").append(toIndentedString(hold)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

